package chat.server;

import java.net.MalformedURLException;
import java.rmi.RemoteException;
import rmioverlay.server.Server;

public class ServerMain {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		try {
			ChatServerApp serverApp = new ChatServerApp();
			Server server = new Server(serverApp); 
			server.start();
			System.out.println("Chat Server running.");
		} catch (RemoteException e) {
			e.printStackTrace();
		} catch (MalformedURLException e) {
			e.printStackTrace();
		}
	}
}
